<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Toplu Taşıma Güzergah Planlama Sistemi</title>
    </h:head>
    <h:body>
        <ui:composition template="./resources/default/template.xhtml">
            <ui:define name="content">
                <f:metadata>
                    <f:viewParam name="descriptionId" value="#{VehicleScheduleBean.routeDescriptionId}" converter="IntegerConverter"/>
                </f:metadata>
                <h:form>
                    <div style="clear: both;"></div>

                    <div >
                        <p:panel header="#{VehicleScheduleBean.routeDescriptionStart.descriptionVehicleName} Sefer Saatleri">
                            <div style="clear: both;"></div>
                            <div style="float: left; width: 50%;">
                                <p:panel style="float: left; width: 88.5%; font-weight: bold;"  >
                                    #{VehicleScheduleBean.routeDescriptionStart.descriptionStartStation.stationName} - #{VehicleScheduleBean.routeDescriptionStart.descriptionEndStation.stationName}
                                </p:panel>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForStart1()}" var="start1" >
                                        <p:column headerText="İş Günleri" >
                                            <h:outputText value="#{start1.scheduleTime}">
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForStart2()}" var="start2" >
                                        <p:column headerText="Cumartesi" >
                                            <h:outputText value="#{start2.scheduleTime}" >
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForStart3()}" var="start3" >
                                        <p:column headerText="Pazar/Tatil" >
                                            <h:outputText value="#{start3.scheduleTime}">
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>

                                <div style="clear: both;"></div>
                            </div>

                            <div style="float: left; width: 50%;">
                                <p:panel style="float: left; width: 88.5%;  font-weight: bold;">
                                    #{VehicleScheduleBean.routeDescriptionEnd.descriptionStartStation.stationName} - #{VehicleScheduleBean.routeDescriptionEnd.descriptionEndStation.stationName}
                                </p:panel>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForEnd1()}" var="end1" >
                                        <p:column headerText="İş Günleri" >
                                            <h:outputText value="#{end1.scheduleTime}">
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForEnd2()}" var="end1" >
                                        <p:column headerText="Cumartesi" >
                                            <h:outputText value="#{end1.scheduleTime}" >
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>
                                <div style="float: left; width: 30%">
                                    <p:dataTable value="#{VehicleScheduleBean.findRouteTimeSchedulesForEnd3()}" var="end1" >
                                        <p:column headerText="Pazar/Tatil" >
                                            <h:outputText value="#{end1.scheduleTime}">
                                                <f:convertDateTime pattern="hh:mm"/>
                                            </h:outputText>
                                        </p:column>
                                    </p:dataTable>
                                </div>

                                <div style="clear: both;"></div>
                            </div>

                            <div style="clear: both;"></div>            

                        </p:panel>


                    </div>


                </h:form>     

            </ui:define>
        </ui:composition>

    </h:body>
</html>

